module.exports = (config) => {
  return {
    transformIndexHtml: {
      enforce: "pre",
      transform: (html, ctx) => {
        return html.replace(/<%= title %>/g, config.inject.data.title)
      },
    },
  };
};// 模拟插件vite-plugin-html 
